<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">

function deleete(x){

	  $.ajax({
				type :"GET",
				url:"suppman.php?x="+x,
			
			success: function(html){
        
			
          alert("Manager supprimé");
		  
		    $.ajax({
				type :"POST",
				url:"listman.php",
			
			success: function(html){
        
			
           $("#listeman").html(html);
      
			}
			
			
        });
		  
      
			}
			
			
        });
	
	
	}

</script>
</head>

<body>
<?php

$base = mysql_connect ('localhost', 'root', ''); 
mysql_select_db ('sql111.0fees.net', $base) ;?>
	<table  id="gradient-style" summary="Meeting Results">
    <thead>
    	<tr>
        	<th scope="col">Objet</th>
            <th scope="col">Message</th>
            <th scope="col">Commentaire</th>
			<th scope="col"></th>
        </tr>
    </thead>
    <tbody><?php 

					$me=$_GET['mes'];
					$id=$_GET['id'];
					mysql_query("UPDATE reclammation SET commentaire='".$me."' , etat='2' WHERE (id='".$id."')");


								$resultat =mysql_query($requete);
								while ($data= mysql_fetch_array($resultat)) { ?>
								<tr><td style:'margin-left:20px;' ><?php echo $data['objet']; ?></td><td><?php echo $data['message'];?></td><td><?php echo $data['commentaire'];?></td><td> <img src='images/close2.png'  class="de" onClick="deleete('<?php echo $data['idmanager']?>')"  > </td> </tr><?php }?>
								</tbody></table>


</body>
</html>